// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_SALES_WORKING_PLAN
// * CreateDate    : 2011/9/27 11:24:18
// * Creater       : CodeSmith
// * LastChangeDate: 2011/9/27 11:24:18
// * LastChanger   : 2011/9/27 11:24:18
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class SalesWorkingPlanTable : TableInfo
    {
		public const string C_TableName = "SALES_WORKING_PLAN";
		
		public const string C_WORKING_PLAN_ID = "WORKING_PLAN_ID";
		public const string C_PERSON_ID = "PERSON_ID";
		public const string C_PLAN_TITLE = "PLAN_TITLE";
		public const string C_PLAN_DESCRIPTION = "PLAN_DESCRIPTION";
		public const string C_START_DATE = "START_DATE";
		public const string C_END_DATE = "END_DATE";
		public const string C_BACK_COLOR = "BACK_COLOR";
		
		public SalesWorkingPlanTable()
        {
            _tableName = "SALES_WORKING_PLAN";
        }
		
		protected static SalesWorkingPlanTable _current;
        public static SalesWorkingPlanTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new SalesWorkingPlanTable();

            _current.Add(C_WORKING_PLAN_ID, new ColumnInfo(C_WORKING_PLAN_ID,"WorkingPlanId", true, typeof(string)));
            _current.Add(C_PERSON_ID, new ColumnInfo(C_PERSON_ID,"PersonId", false, typeof(string)));
            _current.Add(C_PLAN_TITLE, new ColumnInfo(C_PLAN_TITLE,"PlanTitle", false, typeof(string)));
            _current.Add(C_PLAN_DESCRIPTION, new ColumnInfo(C_PLAN_DESCRIPTION,"PlanDescription", false, typeof(string)));
            _current.Add(C_START_DATE, new ColumnInfo(C_START_DATE,"StartDate", false, typeof(DateTime)));
            _current.Add(C_END_DATE, new ColumnInfo(C_END_DATE,"EndDate", false, typeof(DateTime)));
            _current.Add(C_BACK_COLOR, new ColumnInfo(C_BACK_COLOR,"BackColor", false, typeof(string)));
			
		}
		
		public ColumnInfo WORKING_PLAN_ID
        {
            get { return this[C_WORKING_PLAN_ID]; }
        }
		
		public ColumnInfo PERSON_ID
        {
            get { return this[C_PERSON_ID]; }
        }
		
		public ColumnInfo PLAN_TITLE
        {
            get { return this[C_PLAN_TITLE]; }
        }
		
		public ColumnInfo PLAN_DESCRIPTION
        {
            get { return this[C_PLAN_DESCRIPTION]; }
        }
		
		public ColumnInfo START_DATE
        {
            get { return this[C_START_DATE]; }
        }
		
		public ColumnInfo END_DATE
        {
            get { return this[C_END_DATE]; }
        }
		
		public ColumnInfo BACK_COLOR
        {
            get { return this[C_BACK_COLOR]; }
        }
		
		
		
	}
}

